package com.huadi.ssm.service;

import com.huadi.ssm.mapper.OrganizationMapper;
import com.huadi.ssm.po.Organization;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class OrganizationServiceImpl implements OrganizationService {

    @Autowired
    private OrganizationMapper organizationMapper;

    @Override
    public Organization findByName(String name) {
        return organizationMapper.findByName(name);
    }

    @Override
    public int add(Organization organization) {
        return organizationMapper.add(organization);
    }

    @Override
    public int edit(Organization organization) {
        return organizationMapper.edit(organization);
    }

    @Override
    public int delete(String ids) {
        return organizationMapper.delete(ids);
    }

    @Override
    public List<Organization> findList(Map<String, Object> queryMap) {
        return organizationMapper.findList(queryMap);
    }

    @Override
    public int getTotal(Map<String, Object> queryMap) {
        return organizationMapper.getTotal(queryMap);
    }

    @Override
    public List<Organization> findAll() {
        return organizationMapper.findAll();
    }
}
